import request from "../util/request"

export const queryFace = async () => {
    try {
        let {status,message,data} = await request.get("/api/ai/getFaceData");
        if(status == 200 && message == "ok"){
            return data
        }else{
            return Promise.reject({reason : ""})
        }
    }catch (e) {
        return Promise.reject({reason : e.message})
    }
}